var path = require('path')

module.exports = {
  entry: {
    //app: path.resolve(__dirname, 'src/main.js'),
    //jsx: path.resolve(__dirname, 'src/main.jsx'),
    //cjsx: path.resolve(__dirname, 'src/main.cjsx'),
    //react: path.resolve(__dirname, 'src/react.cjsx'),
    bundle: path.resolve(__dirname, 'src/index.cjsx')
  },
  resolve: {
    extensions: ['', '.js', '.jsx', '.cjsx']
  },
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: '[name].js'
  },
  module: {
    loaders: [{
      test: /\.jsx$/,
      loader: 'babel',
      query: {
        presets: ['react', 'es2015']
      }
    }, {
      test: /\.cjsx$/,
      loader: 'coffee!cjsx'
    }]
  }
}